package com.zlx.mall.basic.resource;


import com.zlx.mall.basic.cache.AbstractCacheConstants;

/**
 * @author qingke
 **/
public class ResourceCacheConstants extends AbstractCacheConstants {

    /**
     * Lock key format
     */
    static final String LOCK_KEY_FORMAT = PREFIX.concat("resource:%s:lock");

    /**
     * Lock wait time seconds
     */
    static final long LOCK_WAIT_TIME_SECONDS = 5;

    /**
     * Lock lease time seconds
     */
    static final long LOCK_LEASE_TIME_SECONDS = 30;

    /**
     * Value Cache key format
     */
    static final String CACHE_KEY_FORMAT = PREFIX.concat("resource:%s:value");

    /**
     * Value Cache TTL 7days
     */
    static final long CACHE_TTL_SECONDS = 7 * 24 * 60 * 60;

}
